local skel = fk.CreateSkill{
  name = "lb__fenxiao",
  tags = {Skill.Wake},
}

Fk:loadTranslationTable{
  ["lb__fenxiao"] = "焚晓",
  [":lb__fenxiao"] = "<b>觉醒技</b>，本轮成为过你"..
  "<a href=':lb__fushi'><font color='red'>〖负世〗</font></a>的目标角色死亡后，"..
  "你修改<a href=':lb__fenxiao_zhuhuo'><font color='red'>〖逐火〗</font></a>，"..
  "失去<a href=':lb__lizhou'><font color='red'>〖黎昼〗</font></a>。",

  ["$lb__fenxiao1"] = "以新生的烈阳，撕裂长空！",
  ["$lb__fenxiao2"] = "以旧日余烬，为来世破晓！",
}

skel:addEffect(fk.Deathed, {
  can_trigger = function(self, event, target, player, data)
    return player:usedSkillTimes(skel.name, Player.HistoryGame) == 0
  end,
  can_wake = function (self, event, target, player, data)
    return player:hasSkill(skel.name) and player:hasSkill("lb__zhuhuo",true,true) and table.contains(player:getTableMark("lb__fushi-round"),target.id)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:handleAddLoseSkills(player,"-lb__zhuhuo|lb__fenxiao_zhuhuo",nil,false,true)
    room:handleAddLoseSkills(player,"-lb__lizhou")
  end,
})

return skel